import 'package:flutter/material.dart';

import 'widgets.dart';

class ResetPwd extends StatelessWidget {
  final VoidCallback onSubmit;
  final VoidCallback onEazyLogin;
  final VoidCallback onPwdLogin;

  const ResetPwd({
    Key? key,
    required this.onSubmit,
    required this.onEazyLogin,
    required this.onPwdLogin,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        const LoginTitle('重置密码'),
        const SizedBox(height: 50),
        const CustomInput(
          hintText: '输入新密码',
          keyboardType: TextInputType.text,
          obscureText: true,
        ),
        const SizedBox(height: 10),
        const CustomInput(
          hintText: '再次输入新密码',
          keyboardType: TextInputType.text,
          obscureText: true,
        ),
        const SizedBox(height: 50),
        LoginBtn(
          text: '确认重置',
          onPressed: onSubmit,
        ),
        const SizedBox(height: 20),
        LoginTextBtn(
          text: '密码登录',
          onPressed: onPwdLogin,
        ),
      ],
    );
  }
}
